﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Documents="clr-namespace:System.Windows.Documents;assembly=PresentationFramework"
    xmlns:s="clr-namespace:System;assembly=mscorlib">

    <!--BEGIN FLOWDOCUMENT-->
    
    <Style TargetType="{x:Type Documents:FlowDocument}">
        <Setter Property="FontFamily" Value="Tahoma"/>
        <Setter Property="FontSize" Value="11"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="ColumnWidth" Value="380"/>
    </Style>

    <Style x:Key="HeadingBase" TargetType="{x:Type Documents:Paragraph}">
        <Setter Property="FontFamily" Value="Tahoma"/>
        <Setter Property="FontStyle" Value="Normal"/>
        <Setter Property="FontWeight" Value="Normal"/>
        <Setter Property="FontSize" Value="11"/>
    </Style>
    
    <Style x:Key="Heading1" TargetType="{x:Type Documents:Paragraph}" BasedOn="{StaticResource HeadingBase}">
        <Setter Property="FontSize" Value="21"/>
    </Style>

    <Style x:Key="Heading2" TargetType="{x:Type Documents:Paragraph}" BasedOn="{StaticResource HeadingBase}">
        <Setter Property="FontSize" Value="18"/>
    </Style>

    <Style x:Key="Heading3" TargetType="{x:Type Documents:Paragraph}" BasedOn="{StaticResource HeadingBase}">
        <Setter Property="FontSize" Value="16.5"/>
    </Style>

    <Style x:Key="Heading4" TargetType="{x:Type Documents:Paragraph}" BasedOn="{StaticResource HeadingBase}">
        <Setter Property="FontSize" Value="15"/>
    </Style>

    <Style x:Key="PageTitle" TargetType="{x:Type Documents:Paragraph}" BasedOn="{StaticResource HeadingBase}">
        <!--<Setter Property="BorderBrush" Value="{StaticResource RuleBrush}"/>-->
        <Setter Property="BorderThickness" Value="0,0,0,.25"/>
        <Setter Property="FontSize" Value="24"/>        
    </Style>

    <Style TargetType="{x:Type Documents:List}">
        <Setter Property="Margin" Value="0, 19"/>        
    </Style>

    <Style TargetType="{x:Type Documents:ListItem}">
        <Setter Property="Margin" Value="Auto,0,0,19"/>        
    </Style>

    <Style x:Key="OutlineList" TargetType="{x:Type Documents:List}">
        <Setter Property="Margin" Value="0, 19"/>
        <Setter Property="MarkerStyle" Value="Disc"/>        
        <Setter Property="FontSize" Value="15"/>
    </Style>

    <Style x:Key="OutlineListItem" TargetType="{x:Type Documents:ListItem}">
        <Setter Property="Margin" Value="Auto, 0, 0, 0"/>
    </Style>

    <Style TargetType="{x:Type Documents:Table}">
        <Setter Property="Margin" Value="0"/>
        <Setter Property="CellSpacing" Value="1"/>
        <!--<Setter Property="Background" Value="{StaticResource TableBackground}"/>-->
        <Setter Property="FontFamily" Value="Georgia"/>
        <Setter Property="FontSize" Value="15"/>
    </Style>

    <Style TargetType="{x:Type Documents:Hyperlink}">
        <Setter Property="Cursor" Value="Hand"/>
    </Style>

    <!--END FLOWDOCUMENT-->
    
    <!--BEGIN SINACORFLOWDOCUMENTREADER-->
    
    <Storyboard x:Key="AnimationDisplayMenu">
        <!--<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PART_Zoom" Storyboard.TargetProperty="(Canvas.Top)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="120"/>
        </DoubleAnimationUsingKeyFrames>-->
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PART_Zoom" Storyboard.TargetProperty="(Height)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="120"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>

    <Storyboard x:Key="AnimationHideMenu">
        <!--<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PART_Zoom" Storyboard.TargetProperty="(Canvas.Top)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="0"/>
        </DoubleAnimationUsingKeyFrames>-->
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PART_Zoom" Storyboard.TargetProperty="(Height)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.200" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>

    <Style x:Key="NavigationButtonStyle" TargetType="{x:Type RepeatButton}">
        <Setter Property="Padding" Value="5,5,5,5"/>
        <Setter Property="Delay" Value="1000"/>
        <Setter Property="Interval" Value="250"/>
        <Style.BasedOn>
            <Style TargetType="{x:Type ButtonBase}">
                <Setter Property="Focusable" Value="False"/>
                <Setter Property="Opacity" Value="0.5"/>
                <Setter Property="Cursor" Value="Hand"/>
                <Setter Property="Background" Value="{DynamicResource BrushFlowDocumentReaderBackGround}"/>
                <Setter Property="Padding" Value="3,1,3,1"/>
                <Setter Property="BorderBrush" Value="{x:Null}"/>
                <Setter Property="BorderThickness" Value="0,0,0,0"/>
                <Setter Property="MinWidth" Value="0"/>
                <Setter Property="MinHeight" Value="0"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ButtonBase}">
                            <Border Background="{TemplateBinding Background}">
                                <ContentPresenter RenderTransformOrigin="0.5,0.5" Uid="ContentPresenter_2" x:Name="Content" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                            </Border>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter Property="RenderTransform" TargetName="Content">
                                        <Setter.Value>
                                            <ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>
                                <Trigger Property="IsPressed" Value="True">
                                    <Setter Property="RenderTransform" TargetName="Content">
                                        <Setter.Value>
                                            <ScaleTransform ScaleX="0.9" ScaleY="0.9"/>
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Opacity" Value="0.3"/>
                    </Trigger>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter Property="Opacity" Value="1"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Style.BasedOn>
    </Style>

    <Style x:Key="RadioButtonViewPage" TargetType="{x:Type RadioButton}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                        <ContentPresenter RenderTransformOrigin="0.5,0.5" x:Name="Content" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="RenderTransform" TargetName="Content">
                                <Setter.Value>
                                    <ScaleTransform ScaleX="0.9" ScaleY="0.9"/>
                                </Setter.Value>
                            </Setter>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.BasedOn>
            <Style TargetType="{x:Type ToggleButton}">
                <Style.BasedOn>
                    <Style TargetType="{x:Type ButtonBase}">
                        <Setter Property="Focusable" Value="False"/>
                        <Setter Property="Opacity" Value="0.5"/>
                        <Setter Property="Cursor" Value="Hand"/>
                        <Setter Property="Background" Value="{DynamicResource BrushFlowDocumentReaderBackGround}"/>
                        <Setter Property="Padding" Value="3,1,3,1"/>
                        <Setter Property="BorderBrush" Value="{x:Null}"/>
                        <Setter Property="BorderThickness" Value="0,0,0,0"/>
                        <Setter Property="MinWidth" Value="0"/>
                        <Setter Property="MinHeight" Value="0"/>
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="{x:Type ButtonBase}">
                                    <Border Uid="Border_39" Background="{TemplateBinding Background}">
                                        <ContentPresenter RenderTransformOrigin="0.5,0.5" Uid="ContentPresenter_2" x:Name="Content" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                                    </Border>
                                    <ControlTemplate.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <Setter Property="RenderTransform" TargetName="Content">
                                                <Setter.Value>
                                                    <ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
                                                </Setter.Value>
                                            </Setter>
                                        </Trigger>
                                        <Trigger Property="IsPressed" Value="True">
                                            <Setter Property="RenderTransform" TargetName="Content">
                                                <Setter.Value>
                                                    <ScaleTransform ScaleX="0.9" ScaleY="0.9"/>
                                                </Setter.Value>
                                            </Setter>
                                        </Trigger>
                                    </ControlTemplate.Triggers>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                        <Style.Triggers>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter Property="Opacity" Value="0.3"/>
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Opacity" Value="1"/>
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </Style.BasedOn>
                <Style.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Visibility" Value="Collapsed"/>
                    </Trigger>
                    <Trigger Property="IsChecked" Value="True">
                        <Setter Property="Opacity" Value="1"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Style.BasedOn>
    </Style>

    <Style x:Key="ControlWindowZoomButton" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="63" Height="13.427" ClipToBounds="True">
                        <Canvas Width="63" Height="13.344">
                            <Grid Width="63" Height="13.344">
                                <Rectangle VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Stroke="{DynamicResource BrushWindowZoomBorder1}" StrokeThickness="1" RadiusX="2" RadiusY="2" Fill="{DynamicResource BrushWindowZoomBackground}" Margin="0,-4.534,0,-1.674"/>
                                <StackPanel Orientation="Horizontal" Margin="6.729,0,4.379,0">
                                    <Path Fill="{DynamicResource BrushWindowZoomIconBackground}" Margin="3,3,0,0" Width="11.944" Height="7.598" Stretch="Fill" Stroke="{x:Null}" StrokeThickness="0.3" HorizontalAlignment="Left" x:Name="path" RenderTransformOrigin="0.66525586314383,0.495519092896517" Data="{DynamicResource IconWindowZoom}">
                                        <Path.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="47.976"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Path.RenderTransform>
                                    </Path>
                                    <TextBlock Height="11.333" Margin="1,-2,0,0" FontSize="10" Foreground="{DynamicResource BrushWindowZoomForeground}" Text="{Binding Content, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Style="{DynamicResource ControlFont}"/>
                                    <TextBlock Height="11.333" Margin="0,-2,0,0" FontSize="10" Foreground="{DynamicResource BrushWindowZoomForeground}" Text="%" TextWrapping="Wrap" Style="{DynamicResource ControlFont}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                </StackPanel>
                            </Grid>
                        </Canvas>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Controls:SinacorFlowDocumentReader}">
        <Setter Property="Background" Value="{DynamicResource BrushFlowDocumentReaderBackGround}"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/>
        <Setter Property="MinZoom" Value="30" />
        <Setter Property="MaxZoom" Value="300" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:SinacorFlowDocumentReader}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Border Grid.Row="0" x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" KeyboardNavigation.TabIndex="1" KeyboardNavigation.TabNavigation="Local" KeyboardNavigation.IsTabStop="false" />
                        <Grid Grid.Row="1">
                            <Grid VerticalAlignment="Center" Background="{DynamicResource BrushFlowDocumentReaderFooterBackGround}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                
                                <Canvas Grid.Column="0" Height="15" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,4,0,0">
                                    <Controls:SinacorZoom Canvas.Left="20" Canvas.Top="-120" x:Name="PART_Zoom" CurrentZoom="{Binding Zoom, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Height="0" ShowRestore="False"/>
                                    <Button x:Name="PART_ButtonZoom" Canvas.Left="20" Content="{Binding CurrentZoom, ElementName=PART_Zoom}" Style="{StaticResource ControlWindowZoomButton}" Command="Controls:SinacorWindowCommands.ShowZoomControl"/>
                                </Canvas>

                                <StackPanel x:Name="PageCountAndButtons" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">

                                    <RepeatButton Name="FirstPageButton" Style="{DynamicResource NavigationButtonStyle}" VerticalAlignment="Stretch" Command="NavigationCommands.FirstPage" IsEnabled="{Binding Path=CanGoToPreviousPage,RelativeSource={RelativeSource TemplatedParent}}">
                                        <Viewbox Height="{TemplateBinding FontSize}">
                                            <Path Fill="{DynamicResource BrushFlowDocumentReaderForeGround}" Stretch="Fill" StrokeLineJoin="Round" StrokeThickness="0" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="12.495" Height="10.5" Uid="Path_18" Data="M0.25,0.50000016 L1.6859999,0.50000016 1.6859999,10.177 0.25,10.177 z M12.245,0.25 L12.245,10.25 7.2449998,5.2500001 z M7.0389999,0.25 L7.0389999,10.25 2.039,5.2500001 z"/>
                                        </Viewbox>
                                    </RepeatButton>
                                    
                                    <RepeatButton Style="{DynamicResource NavigationButtonStyle}" IsEnabled="{TemplateBinding CanGoToPreviousPage}" Command="NavigationCommands.PreviousPage">
                                        <Viewbox Height="{TemplateBinding FontSize}">
                                            <Path Data="M5,0 L5,10 L0,5 z" Stroke="{DynamicResource BrushFlowDocumentReaderFooterStroke}" StrokeLineJoin="Round" StrokeThickness="0.5" Fill="{DynamicResource BrushFlowDocumentReaderForeGround}"/>
                                        </Viewbox>
                                    </RepeatButton>

                                    <TextBlock Style="{Binding ControlFont}" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource BrushFlowDocumentReaderForeGround}">
                                        <TextBlock Margin="4,0,8,0" Text="{Binding Path=PageNumber, RelativeSource={RelativeSource TemplatedParent}}" /> 
                                        of 
                                        <TextBlock Margin="8,0,4,0" Text="{Binding Path=PageCount, RelativeSource={RelativeSource TemplatedParent}}" />
                                    </TextBlock>

                                    <RepeatButton Style="{DynamicResource NavigationButtonStyle}" IsEnabled="{TemplateBinding CanGoToNextPage}" Command="NavigationCommands.NextPage">
                                        <Viewbox Height="{TemplateBinding FontSize}">
                                            <Path Data="M0,0 L0,10 L5,5 z" StrokeThickness="0.5" Stroke="{DynamicResource BrushFlowDocumentReaderFooterStroke}" StrokeLineJoin="Round" Fill="{DynamicResource BrushFlowDocumentReaderForeGround}"/>
                                        </Viewbox>
                                    </RepeatButton>
                                    
                                    <RepeatButton Name="LastPageButton" Style="{DynamicResource NavigationButtonStyle}" VerticalAlignment="Stretch" Command="NavigationCommands.LastPage" IsEnabled="{Binding Path=CanGoToNextPage,RelativeSource={RelativeSource TemplatedParent}}">
                                        <Viewbox Height="{TemplateBinding FontSize}">
                                            <Path Fill="{DynamicResource BrushFlowDocumentReaderForeGround}" Stretch="Fill" StrokeLineJoin="Round" StrokeThickness="0" VerticalAlignment="Bottom" Height="10.5" Uid="Path_18" Data="M0.25,0.50000016 L1.6859999,0.50000016 1.6859999,10.177 0.25,10.177 z M12.245,0.25 L12.245,10.25 7.2449998,5.2500001 z M7.0389999,0.25 L7.0389999,10.25 2.039,5.2500001 z" RenderTransformOrigin="0.5,0.5" Width="12.495" HorizontalAlignment="Left">
                                                <Path.RenderTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform ScaleX="-1" ScaleY="1"/>
                                                        <SkewTransform AngleX="0" AngleY="0"/>
                                                        <RotateTransform Angle="0"/>
                                                        <TranslateTransform X="0" Y="0"/>
                                                    </TransformGroup>
                                                </Path.RenderTransform>
                                            </Path>
                                        </Viewbox>
                                    </RepeatButton>

                                </StackPanel>

                                <StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Opacity="1" Background="{DynamicResource BrushFlowDocumentReaderViewButtonBackGround}">
                                    <RadioButton x:Name="PageViewButton" Style="{DynamicResource RadioButtonViewPage}" Command="FlowDocumentReader.SwitchViewingModeCommand" CommandParameter="Page" GroupName="ViewingMode" IsEnabled="{TemplateBinding IsPageViewEnabled}" Opacity="1">
                                        <Path Stroke="{DynamicResource BrushFlowDocumentReaderForeGround}" StrokeThickness="1.2" VerticalAlignment="Center">
                                            <Path.Data>
                                                <GeometryGroup>
                                                    <RectangleGeometry RadiusX="1" RadiusY="1" Rect=".5,.5 19,19" />
                                                    <RectangleGeometry Rect="4.5,3.5 11, 13" />
                                                    <LineGeometry StartPoint="4.5,4.5" EndPoint="15.5,4.5" />
                                                    <LineGeometry StartPoint="4.5,6.5" EndPoint="15.5,6.5" />
                                                    <LineGeometry StartPoint="4.5,8.5" EndPoint="15.5,8.5" />
                                                    <LineGeometry StartPoint="4.5,10.5" EndPoint="15.5,10.5" />
                                                    <LineGeometry StartPoint="4.5,12.5" EndPoint="15.5,12.5" />
                                                    <LineGeometry StartPoint="4.5,14.5" EndPoint="15.5,14.5" />
                                                </GeometryGroup>
                                            </Path.Data>
                                        </Path>
                                    </RadioButton>
                                    <RadioButton x:Name="TwoPageViewButton" Style="{DynamicResource RadioButtonViewPage}" Command="FlowDocumentReader.SwitchViewingModeCommand" CommandParameter="TwoPage" GroupName="ViewingMode" IsEnabled="{TemplateBinding IsTwoPageViewEnabled}" Opacity="1">
                                        <Path Stroke="{DynamicResource BrushFlowDocumentReaderForeGround}" StrokeThickness="1.2" VerticalAlignment="Center">
                                            <Path.Data>
                                                <GeometryGroup>
                                                    <RectangleGeometry RadiusX="1" RadiusY="1" Rect=".5,.5 19,19" />
                                                    <RectangleGeometry Rect="3.5,3.5 5, 13" />
                                                    <LineGeometry StartPoint="3.5,4.5" EndPoint="8.5,4.5" />
                                                    <LineGeometry StartPoint="3.5,6.5" EndPoint="8.5,6.5" />
                                                    <LineGeometry StartPoint="3.5,8.5" EndPoint="8.5,8.5" />
                                                    <LineGeometry StartPoint="3.5,10.5" EndPoint="8.5,10.5" />
                                                    <LineGeometry StartPoint="3.5,12.5" EndPoint="8.5,12.5" />
                                                    <LineGeometry StartPoint="3.5,14.5" EndPoint="8.5,14.5" />
                                                    <RectangleGeometry Rect="11.5,3.5 5, 13" />
                                                    <LineGeometry StartPoint="11.5,4.5" EndPoint="16.5,4.5" />
                                                    <LineGeometry StartPoint="11.5,6.5" EndPoint="16.5,6.5" />
                                                    <LineGeometry StartPoint="11.5,8.5" EndPoint="16.5,8.5" />
                                                    <LineGeometry StartPoint="11.5,10.5" EndPoint="16.5,10.5" />
                                                    <LineGeometry StartPoint="11.5,12.5" EndPoint="16.5,12.5" />
                                                    <LineGeometry StartPoint="11.5,14.5" EndPoint="16.5,14.5" />
                                                </GeometryGroup>
                                            </Path.Data>
                                        </Path>
                                    </RadioButton>
                                    <RadioButton x:Name="ScrollViewButton" Style="{DynamicResource RadioButtonViewPage}" Command="FlowDocumentReader.SwitchViewingModeCommand" CommandParameter="Scroll" GroupName="ViewingMode" IsEnabled="{TemplateBinding IsScrollViewEnabled}" Margin="0,0,20,0" Opacity="1">
                                        <Path Stroke="{DynamicResource BrushFlowDocumentReaderForeGround}" StrokeThickness="1.2" VerticalAlignment="Center">
                                            <Path.Data>
                                                <GeometryGroup>
                                                    <RectangleGeometry RadiusX="1" RadiusY="1" Rect=".5,.5 19,19" />
                                                    <RectangleGeometry Rect="3.5,3.5 8, 13" />
                                                    <LineGeometry StartPoint="3.5,4.5" EndPoint="11.5,4.5" />
                                                    <LineGeometry StartPoint="3.5,6.5" EndPoint="11.5,6.5" />
                                                    <LineGeometry StartPoint="3.5,8.5" EndPoint="11.5,8.5" />
                                                    <LineGeometry StartPoint="3.5,10.5" EndPoint="11.5,10.5" />
                                                    <LineGeometry StartPoint="3.5,12.5" EndPoint="11.5,12.5" />
                                                    <LineGeometry StartPoint="3.5,14.5" EndPoint="11.5,14.5" />
                                                    <RectangleGeometry Rect="13.5,3.5 3, 13" />
                                                    <RectangleGeometry Rect="14.5,4.5 1, 3" />
                                                    <RectangleGeometry Rect="14.5,12.5 1, 3" />
                                                </GeometryGroup>
                                            </Path.Data>
                                        </Path>
                                    </RadioButton>
                                </StackPanel>
                            </Grid>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="ViewingMode" Value="Page">
                            <Setter TargetName="PageViewButton" Property="IsChecked" Value="True" />
                        </Trigger>
                        <Trigger Property="ViewingMode" Value="TwoPage">
                            <Setter TargetName="TwoPageViewButton" Property="IsChecked" Value="True" />
                        </Trigger>
                        <Trigger Property="ViewingMode" Value="Scroll">
                            <Setter TargetName="ScrollViewButton" Property="IsChecked" Value="True" />
                            <Setter TargetName="PageCountAndButtons" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!--END SINACORFLOWDOCUMENTREADER-->
    
</ResourceDictionary>